package institutional

class Major {
	int majorId
	String name
	
	static belongsTo =[]
	
	static hasMany = [subjects: Subject]	
	
    static constraints = {
    	majorId unique: true
		name: blank: false
	}
	
	String toString () {
		"$name"
	}
	
	
}
